package club.haomoon.boss.service.admin;

import club.haomoon.core.entity.admin.AdminRoleData;

import java.util.List;

/**
 * -------------------------
 * @Description: 角色关联接口类
 * @Author: Wangjianwei
 * @Date: 2025/02/17 17:12
 * -------------------------
 */
public interface IAdminRoleService {

    /**
     * 关联角色id
     */
    List<Integer> getRoleIdAttr(Integer adminId);


    List<AdminRoleData> getAdminIdByRoleId(Integer roleId);


    /**
     * 批量设置部门
     * @param adminId
     * @param deptIds
     */
    void batchInsert(Integer adminId, List<Integer> deptIds);

    /**
     * 删除关联角色
     * @param adminId
     */
    void deleteByAdminId(Integer adminId);
}
